package com.jiahui.vote.service;

import com.jiahui.vote.entity.Vote;

public interface VoteService {
    Vote[] getAllVotes();

    Vote getVoteById(int id);

    boolean addVote(Vote vote);

    boolean deleteVote(int id);

    boolean vote(int id, int which);
}
